package cn.mxh.pethspt.entity;
import java.time.LocalDateTime;

/**
 * 新闻信息实体类
 */
public class Message {
    private Integer meId;// 信息id
    private String meComment;// 内容
    private LocalDateTime meTime;// 发布时间
    private String meImgSrc;// 图片路径
    private Integer eId;// 员工id
    private Integer tpId;// 主题id

    public Message(){}

    public Message(Integer meId, String meComment, LocalDateTime meTime, String meImgSrc, Integer eId, Integer tpId) {
        this.meId = meId;
        this.meComment = meComment;
        this.meTime = meTime;
        this.meImgSrc = meImgSrc;
        this.eId = eId;
        this.tpId = tpId;
    }

    public Integer getMeId() {
        return meId;
    }

    public void setMeId(Integer meId) {
        this.meId = meId;
    }

    public String getMeComment() {
        return meComment;
    }

    public void setMeComment(String meComment) {
        this.meComment = meComment;
    }

    public LocalDateTime getMeTime() {
        return meTime;
    }

    public void setMeTime(LocalDateTime meTime) {
        this.meTime = meTime;
    }

    public String getMeImgSrc() {
        return meImgSrc;
    }

    public void setMeImgSrc(String meImgSrc) {
        this.meImgSrc = meImgSrc;
    }

    public Integer geteId() {
        return eId;
    }

    public void seteId(Integer eId) {
        this.eId = eId;
    }

    public Integer getTpId() {
        return tpId;
    }

    public void setTpId(Integer tpId) {
        this.tpId = tpId;
    }

    @Override
    public String toString() {
        return "Message{" +
                "meId=" + meId +
                ", meComment='" + meComment + '\'' +
                ", meTime=" + meTime +
                ", meImgSrc='" + meImgSrc + '\'' +
                ", eId=" + eId +
                ", tpId=" + tpId +
                '}';
    }
}
